
addSetterAndGetter = (obj) ->
    f = (word) ->
        if typeof(word) != 'String' and word.length < 1
            return ''
        word[0].toUpperCase() + word.slice 1, word.length

    for k, v of obj
        if typeof(v) != 'function'
            obj['set' + f(k)] = (value) ->
                obj[k] = value
                console.log 'changed', obj

            obj['get' + f(k)] = () ->
                obj[k]

    return obj
